package com.pinea;

import com.sun.jna.Structure;

import java.util.Arrays;
import java.util.List;

public class PineaRect extends Structure implements Structure.ByReference {
    
    public float x; // 左上角x坐标
    public float y; // 左上角y坐标
    public float w; // 宽度
    public float h; // 高度

    public PineaRect(float x, float y, float w, float h) {
        this.x = x;
        this.y = y;
        this.w = w;
        this.h = h;
    }

    @Override
    protected List<String> getFieldOrder() {
        return Arrays.asList("x", "y", "w", "h");
    }
}